<?php

class Database_forge extends CI_Controller{
	
	function __construct(){
		parent::__construct();
		$this->load->model('database_forge_model');
	}
	
	function createDatabase(){
		$this->database_forge_model->createDatabase();
	}
	
	function dropDatabase(){
		$this->database_forge_model->dropDatabase();
	}
	
	// ---------------------------------------------------------------
	
	function createTables(){
		$this->database_forge_model->createAllTables();
	}
	
	function dropTables(){
		$this->database_forge_model->dropAllTables();
	}
	
	// ---------------------------------------------------------------
	
	function createArticlesTable(){
		$this->database_forge_model->createArticlesTable();
	}
	
	function createArticleCategoriesTable(){
		$this->database_forge_model->createArticleCategoriesTable();
	}
	
	function createUserOpenIdTable(){
		$this->database_forge_model->createUserOpenIdTable();
	}
	
	function createArticleCommentsTable(){
		$this->database_forge_model->createArticleCommentsTable();
	}
	
	function createBookmarkTable(){
		$this->database_forge_model->createBookmarkTable();
	}
	
	function createSubscriptionTable(){
		$this->database_forge_model->createSubscriptionTable();
	}
	
	function lawl(){
		$this->database_forge_model->addCategories();
		echo "lawl";
	}
	// ---------------------------------------------------------------
	
	function dropArticlesTable(){
		$this->database_forge_model->dropArticlesTable();
	}
	
	function dropArticleCategoriesTable(){
		$this->database_forge_model->dropArticleCategoriesTable();
	}
	
	function dropUserOpenIdTable(){
		$this->database_forge_model->dropUserOpenIdTable();
	}
	
	function dropArticleCommentsTable(){
		$this->database_forge_model->dropArticleCommentsTable();
	}
	
	// ---------------------------------------------------------------
}